package com.huluobo.base.net

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

/**
 *  Created by LC on 2024/9/18.
 */
class TokenInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request().newBuilder()
            .addHeader(Const.PARAM_TOKEN, SPUtils.getInstance().getString(Const.PARAM_TOKEN)).build()
        return chain.proceed(request)
    }
}